#include "Task.h"


Task::Task( )
	:_result(nullptr)
{
}

void Task::exec()
{
	if (_result != nullptr)
	{
		_result->setVal(run());
	}
}

void Task::setResult(Result* res)
{
	_result = res;
}


